Add display-mode setting (dock / menu bar / hidden)#6
Merged
Conversation
New "Show app in" picker in Settings: - Dock — current behavior, regular activation policy. - Menu Bar — accessory mode with an NSStatusItem that mirrors the Dock menu (Settings, Open Config, Check for Updates, Quit). - Hidden — accessory mode with no status item or Dock icon. Re-launching cmdcmd.app reopens Settings via applicationShouldHandleReopen. Mode is persisted to config.json via the in-place patcher and applied live without restart. Removes the unconditional setActivationPolicy(.regular) at launch so config wins on cold start. Hidden uses .accessory rather than .prohibited so single-instance relaunch behavior keeps working. Co-Authored-By: plyght <plyght@peril.lol> Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
The colorful ⌘⌘ app icon doesn't follow the standard monochrome template-image convention. Switched to the system "command" SF Symbol (template = true) so the system tints it correctly across light/dark and accent-color menu bars. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
New "Show app in" picker in Settings, persisted to `config.json` and applied live:
Hidden mode uses `.accessory`, not `.prohibited`, so macOS keeps the single-instance launch behavior — relaunching the .app brings the running process back to Settings instead of spawning a duplicate.
The unconditional `setActivationPolicy(.regular)` at launch is gone, so config wins on cold start.
Credit to @plyght — concept from #1, simplified.
Test plan
🤖 Generated with Claude Code